<template>
    <div>
        {{$store.state.count}}
        <button @click="handleIncrement">增加</button>
        <button @click="handleDecrement">删除</button>
    </div>
</template>

<script>
import {mapActions} from 'vuex'
export default {
    methods: mapActions([
        'handleIncrement',
        'handleDecrement'
    ])
}
</script>